package com.yunfeisoft.base.model;

import com.yunfeisoft.common.base.BaseModel;
import com.yunfeisoft.common.sql.record.TransientField;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.List;

/**
 * ClassName: WorkflowStep
 * Description: 流程步骤定义
 *
 * @Author: Jackie liu
 * Date: 2020-01-03
 */
@Entity
@Table(name = "TS_WORKFLOW_STEP")
public class WorkflowStep extends BaseModel implements Serializable {

    /**
     * Field serialVersionUID: 序列号
     */
    private static final long serialVersionUID = 1L;

    /**
     * 流程定义id
     */
    @Column
    private String workflowDefineId;

    /**
     * 名称
     */
    @Column
    private String name;

    /**
     * 排序号
     */
    @Column
    private Integer stepNum;

    @TransientField
    private String userName;
    private String[] userIds;
    private List<WorkflowStepUser> userList;

    public String getWorkflowDefineId() {
        return workflowDefineId;
    }

    public void setWorkflowDefineId(String workflowDefineId) {
        this.workflowDefineId = workflowDefineId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getStepNum() {
        return stepNum;
    }

    public void setStepNum(Integer stepNum) {
        this.stepNum = stepNum;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String[] getUserIds() {
        return userIds;
    }

    public void setUserIds(String[] userIds) {
        this.userIds = userIds;
    }

    public List<WorkflowStepUser> getUserList() {
        return userList;
    }

    public void setUserList(List<WorkflowStepUser> userList) {
        this.userList = userList;
    }
}